package com.onec.service.api.dto.response.customer;


import com.fasterxml.jackson.annotation.JsonInclude;
import com.onec.service.api.dto.response.BaseResponse;
import com.onec.service.api.enums.ResultCodeEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 代理商
 * 渠道信息。
 *
 * @author ONEC
 */
@Data
@EqualsAndHashCode(callSuper=false)
@JsonInclude(value = JsonInclude.Include.NON_NULL)
public class MerchantResp extends BaseResponse {


    private Long id;

    private Integer version;

    private Long agentId;

    private String merchantNo;

    private String name;

    private String product;

    private String contacts;

    private String phone;

    private String outCode;

    private String createTime;


    private String updateTime;

    private String creator;

    private String remarks;

    private String status;

    private String cardNo;

    private String idCard;

    private String address;

    private String province;

    private String city;

    private String country;

    private BigDecimal rate;

    private BigDecimal fee;

    private String businessNo;

    public MerchantResp() {
    }

    /**
     * 下游：商户注册成功返回参数：
     *
     * @param resultCodeEnum
     */
    public MerchantResp(ResultCodeEnum resultCodeEnum) {
        super(resultCodeEnum.getCode(), resultCodeEnum.getMessage());
    }


}
